import { createRouter, createWebHistory } from "vue-router";

import SystemDiagram from '@/components/SystemDiagram.vue'
import QuantityGrouping from '@/components/QuantityGrouping.vue'
import ThreeDimensionalInspection from '@/components/ThreeDimensionalInspection.vue'
import DeviceHistoryAlarm from '@/components/DeviceHistoryAlarm.vue'
import AlarmList from '@/components/AlarmList.vue'
import VideoSurveillance from '@/components/VideoSurveillance.vue'
import DataAnalysis from '@/components/DataAnalysis.vue'
import KnowledgeBase from '@/components/KnowledgeBase.vue'
import KnowledgeBaseDetail from '@/components/KnowledgeBaseDetail.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            // 图形化界面
            name: 'SystemDiagram',
            path: '/systemDiagram',
            component: SystemDiagram
        },
        {
            // 实时数据分析
            name: 'QuantityGrouping',
            path: '/quantityGrouping',
            component: QuantityGrouping
        },
        {
            // 数据分析
            name: 'DataAnalysis',
            path: '/dataAnalysis',
            component: DataAnalysis
        },
        {
            // 三维巡检
            name: 'ThreeDimensionalInspection',
            path: '/ThreeDimensionalInspection',
            component: ThreeDimensionalInspection
        },
        {
            // 告警列表
            name: 'AlarmList',
            path: '/alarmList',
            component: AlarmList
        },
        {
            // 历史告警
            name: 'DeviceHistoryAlarm',
            path: '/deviceHistoryAlarm',
            component: DeviceHistoryAlarm 
        },
        {
            // 视频监控
            name: 'VideoSurveillance',
            path: '/videoSurveillance',
            component: VideoSurveillance
        },
        {
            // 知识库
            name: 'KnowledgeBase',
            path: '/knowledgeBase',
            component: KnowledgeBase
        },
        {
            // 知识库详情
            name: 'KnowledgeBaseDetail',
            path: '/knowledgeBaseDetail',
            component: KnowledgeBaseDetail
        }
    ]
});

export default router